package BehavioralModel.StrategyPattern;

/**
 * @author 王蕾 [wanglei_dev@cyou-inc.com]
 * @date 2017-12-07 15:06:00
 */
public class CashContext {

    private CashStrage cashSuper;

    public CashContext(CashStrage cashSuper) {
        this.cashSuper = cashSuper;
    }

    public double getResult(double money){
        return cashSuper.acceptCash(money);
    }
}
